using UnityEngine.SceneManagement;
using UnityEngine;
using UnityEngine.UI;

public class GameEndUiEvent : MonoBehaviour
{
    public Text SummaryText;

    public void Summary(GameScore score)
    {
        SummaryText.text = $"Best: {score.Best}\nGood: {score.Good}\nBad: {score.Bad}\nMiss: {score.Miss}\nMax Combo: {score.MaxCombo}\n";
    }

    public void Restart()
    {
        SceneManager.LoadScene(1);
    }

    public void Return()
    {
        SceneManager.LoadScene(GameChartTransition.Instance.backScene);
    }
}
